package com.xydtech.ecard.ecard.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 电子名片预授信记录对象 ecard_prior_credit_record
 *
 * @author xydtech
 * @date 2024-05-16
 */
public class EcardPriorCreditRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 客户类型，1个人，2商户
     */
    @Excel(name = "客户类型，1个人，2商户")
    private String custType;

    /**
     * 商户名称
     */
    @Excel(name = "商户名称")
    private String merchantName;

    /**
     * 商户地址
     */
    @Excel(name = "商户地址")
    private String merchantAddress;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phone;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String cardNum;

    /**
     * 预授信额度（元）
     */
    @Excel(name = "预授信额度", readConverterExp = "元")
    private String carditLimit;

    /**
     * 身份证头像面
     */
    @Excel(name = "身份证头像面")
    private String headUrl;

    /**
     * 身份证国徽面
     */
    @Excel(name = "身份证国徽面")
    private String badgeUrl;

    /**
     * 办理合影
     */
    @Excel(name = "办理合影")
    private String pictureUrl;
    /**
     * 授信卡路径
     */
    @Excel(name = "授信卡路径")
    private String preCreditUrl;
    /**
     * 有效期
     */
    @Excel(name = "有效期")
    private String validity;

    /**
     * 归属法人机构
     */
    @Excel(name = "归属法人机构")
    private Long deptId;

    /**
     * 关联表ID（如果从商户列表进来的则为商户表ID）
     */
    @Excel(name = "关联表ID", readConverterExp = "如果从商户列表进来的则为商户表ID")
    private Long associationId;

    /**
     * 查询条件，姓名、商户名称、联系方式
     */
    private String search;


    /** 状态，1-正常 2-到期 3-作废 */
    @Excel(name = "状态，1-正常 2-到期 3-作废")
    private String sts;

    /** 客户经理 */
    @Excel(name = "客户经理")
    private Long userId;

    /** 截止日期 */
    @Excel(name = "截止日期")
    private String endDate;

    /** 起始日期 */
    @Excel(name = "起始日期")
    private String beginDay;

    /** 营业执照图片 */
    @Excel(name = "营业执照图片")
    private String licensePic;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCustType(String custType) {
        this.custType = custType;
    }

    public String getCustType() {
        return custType;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantAddress(String merchantAddress) {
        this.merchantAddress = merchantAddress;
    }

    public String getMerchantAddress() {
        return merchantAddress;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCarditLimit(String carditLimit) {
        this.carditLimit = carditLimit;
    }

    public String getCarditLimit() {
        return carditLimit;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setBadgeUrl(String badgeUrl) {
        this.badgeUrl = badgeUrl;
    }

    public String getBadgeUrl() {
        return badgeUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setValidity(String validity) {
        this.validity = validity;
    }

    public String getValidity() {
        return validity;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setAssociationId(Long associationId) {
        this.associationId = associationId;
    }

    public Long getAssociationId() {
        return associationId;
    }


    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }
    public void setPreCreditUrl(String preCreditUrl)
    {
        this.preCreditUrl = preCreditUrl;
    }

    public String getPreCreditUrl()
    {
        return preCreditUrl;
    }
    public void setSts(String sts)
    {
        this.sts = sts;
    }

    public String getSts()
    {
        return sts;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getBeginDay() {
        return beginDay;
    }

    public void setBeginDay(String beginDay) {
        this.beginDay = beginDay;
    }

    public String getLicensePic() {
        return licensePic;
    }

    public void setLicensePic(String licensePic) {
        this.licensePic = licensePic;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("custType", getCustType())
                .append("merchantName", getMerchantName())
                .append("merchantAddress", getMerchantAddress())
                .append("name", getName())
                .append("phone", getPhone())
                .append("cardNum", getCardNum())
                .append("carditLimit", getCarditLimit())
                .append("headUrl", getHeadUrl())
                .append("badgeUrl", getBadgeUrl())
                .append("pictureUrl", getPictureUrl())
                .append("preCreditUrl", getPreCreditUrl())
                .append("validity", getValidity())
                .append("deptId", getDeptId())
                .append("createBy", getCreateBy())
                .append("associationId", getAssociationId())
                .append("sts", getSts())
                .append("userId", getUserId())
                .append("endDate", getEndDate())
                .append("beginDay", getBeginDay())
                .append("licensePic", getLicensePic())
                .toString();
    }
}
